  /**
   * Generate time : 2013-06-25 6:11:38
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBLevel 
 * table comment : 采水平信息 
 */
public class ZMCBLevel extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdMineId = " ";		/* 所属矿井ID*/
	private String fdNo = " ";		/* 水平编号*/
	private String fdName = " ";		/* 水平名称*/
	private Long fdElevation = new Long(0);	/* 标高*/
	private String fdRemarks = " ";		/* 备注*/
	private String fdIsFirst = " ";		/* 是否为第一水平*/
	private Double fdLevelReserves = new Double(0);		/* 储量*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdLevelReserves");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("储量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("所属矿井ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("水平编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("水平名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdElevation");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("标高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsFirst");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("是否为第一水平");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCBLevel() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdHeight - 回采量2
	 * @return the fdHeight
	 */
	public Double getFdLevelReserves() {
		return this.fdLevelReserves;
	}
	
	/**
	 * set the fdHeight - 回采量2
	 */
	public void setFdLevelReserves(Double fdLevelReserves) {
		this.fdLevelReserves = fdLevelReserves;
	}
	
	/**
	 * get the fdMineId - 所属矿井ID
	 * @return the fdMineId
	 */
	public String getFdMineId() {
		return this.fdMineId;
	}
	
	/**
	 * set the fdMineId - 所属矿井ID
	 */
	public void setFdMineId(String fdMineId) {
		this.fdMineId = fdMineId;
	}
	
	/**
	 * get the fdNo - 水平编号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 水平编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 水平名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 水平名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdElevation - 标高
	 * @return the fdElevation
	 */
	public Long getFdElevation() {
		return this.fdElevation;
	}
	
	/**
	 * set the fdElevation - 标高
	 */
	public void setFdElevation(Long fdElevation) {
		this.fdElevation = fdElevation;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdIsFirst - 是否为第一水平
	 * @return the fdIsStratified
	 */
	public String getFdIsFirst() {
		return this.fdIsFirst;
	}
	
	/**
	 * set the fdIsFirst - 是否为第一水平
	 */
	public void setFdIsFirst(String fdIsFirst) {
		this.fdIsFirst = fdIsFirst;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMineId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMineId")), fdMineId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdElevation(NumberUtils.toLong(StringUtils.toString(map.get("fdElevation")), fdElevation));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdLevelReserves(NumberUtils.toDouble(StringUtils.toString(map.get("fdLevelReserves")), fdLevelReserves));
		setFdIsFirst(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsFirst")), fdIsFirst));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMineId",StringUtils.toString(fdMineId, eiMetadata.getMeta("fdMineId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdElevation",StringUtils.toString(fdElevation, eiMetadata.getMeta("fdElevation")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			map.put("fdLevelReserves",StringUtils.toString(fdLevelReserves, eiMetadata.getMeta("fdLevelReserves")));	
			map.put("fdIsFirst",StringUtils.toString(fdIsFirst, eiMetadata.getMeta("fdIsFirst")));	
		return map;
	
	}
}